<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>宠物智能识别系统-后台管理</title>

  <link rel="stylesheet" href="static/index/css/index.css">
  <link rel="shortcut icon" href="static/icon_img/tubiao.ico"/>
  <link rel="bookmark" href="dist/img/favicon.ico"/>
  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <!-- static/ -->
  <link rel="stylesheet" href="static/index/css/all.min.css">
  <!-- fullCalendar -->
  <link rel="stylesheet" href="static/index/css/main.css">
  <!-- Theme style -->
      <link rel="stylesheet" href="static/public/bootstrap/css/bootstrap4.6.1.min.css">
  <link rel="stylesheet" href="static/index/css/adminlte.min.css">
  <link rel="stylesheet" href="static/admin/css/admin_showdownbox.css">
  
  <script src="static/public/jquery/jquery.min.js"></script>
 <script src="static/public/bootstrap/js/bootstrap4.6.1.min.js"></script>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand control-sidebar-dark" style="border-radius: 0px;">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="/" class="nav-link">
          {% if request.args.get('name') == None %}
          登录
          {% else %}
          退回网站首页
          {% endif %}
        </a>
      </li>
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Navbar Search -->
      <!-- <li class="nav-item">
        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
          <i class="fas fa-search"></i>
        </a>
      </li> -->

      <!-- Messages Dropdown Menu -->
      <!-- <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge"></span>
        </a>
      </li> -->
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge"></span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

   <!-- Main Sidebar Container--> 
  <aside class="main-sidebar control-sidebar-dark elevation-4">
    <!-- Brand Logo -->
    <a href="/admin_pet?name={{name}}" class="brand-link">
      <img src="static/icon_img/tubiao.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">后台管理</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        {% if name== None %}
        <div class="image">
          <img src="static/icon_img/tubiao.png" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="login?page=index" class="d-block">未登录</a>
        </div>
        {% endif %}
        {% if name!= None %}
        <div class="image">
          <!-- <img src="static/imgs/userpics/{{name}}.png" class="img-circle elevation-2" alt="User Image">  暂时不使用20231022-->
          <img src="http://127.0.0.1:5001/showprofileimg={{name}}" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="userCenter?name={{name}}" class="d-block">{{name}}</a>
        </div>
        {% endif %}
      </div>


      <!-- Sidebar Menu -->
      <nav class="mt-2" style="">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
        <!--  <li class="nav-header">基础服务</li> -->
          <li class="nav-item">
            <a href="admin_pet?name={{name}}" class="nav-link">
             <!-- <i class="nav-icon fas fa-search"></i> -->
              <p class="index-font2">
               宠物信息管理
              </p>
            </a>
          </li>
          <li class="nav-item">
            <a href="admin_user?name={{name}}" class="nav-link">
            <!--  <i class="nav-icon far fa-image"></i> -->
              <p class="index-font2"> 用户信息管理
              </p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content 这里是显示宠物信息和图片部分-->
  <div class="content-wrapper ">
	  <section class="content-header">
	    <div class="container-fluid">
	      <div class="row mb-2">
	        <div class="col-sm-6">
	          <h1>宠物信息管理 &nbsp;&nbsp;
			  <span style="font-size: 20px;"><a href="/admin_pclass?name={{name}}">宠物类别信息管理</a></span></h1> 
	        </div>
	        <div class="col-sm-6">
	          <ol class="breadcrumb float-sm-right">
	            <li class="breadcrumb-item"><a href="admin_pet?name={{name}}">后台管理</a></li>
	            <li class="breadcrumb-item active">宠物信息管理</li>
	          </ol>
	        </div>
	      </div>
	    </div><!-- /.container-fluid -->
	  </section>
    <div class="tab-content" style="text-align: center">
      <div class="tab-empty" style="text-align: center">
       <!-- 宠物信息管理部分 --> 
	    {% include 'admin/adminpet_template.html' %}
      
	   {% include 'admin/spiderdata_template.html' %}
       		
      

       



      </div>
    </div>
  </div>
  <!-- /.content-wrapper -->
  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->

<!-- Bootstrap -->
<script src="static/public/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- jQuery UI -->
<script src="static/public/jquery/jquery-ui.min.js"></script>
<!-- AdminLTE App -->
<script src="static/index/js/adminlte.min.js"></script>
<!-- fullCalendar 2.2.5 -->
<script src="static/index/js/moment.min.js"></script>
<script src="static/index/js/main.js"></script>
<!-- AdminLTE for demo purposes -->
<!-- Page specific script -->
</body>
</html>